package cn.com.huzo.repository.purchase.impl;

import cn.com.huzo.model.entities.purchase.ReportPoCostPerStyleEntity;
import cn.com.huzo.repository.purchase.ReportPoCostPerStyleRepository;
import huzofw.repository.impl.GenericRepositoryImpl;
import huzofw.repository.impl.MyBatisDaoUtils;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Repository;

/**
 * 款采购成本统计表情况数据访问对象。
 *
 * @author 吴旭
 */
@Repository("ReportPoCostPerStyleRepository")
public class ReportPoCostPerStyleRepositoryImpl extends GenericRepositoryImpl<ReportPoCostPerStyleEntity, HashMap>
        implements ReportPoCostPerStyleRepository {

    private final String namespace = "cn.com.huzo.repository.purchase.ReportPoCostPerStyleRepository";

    /**
     * 构造函数,设置the instance to ProductRepositoryImpl.class.
     */
    public ReportPoCostPerStyleRepositoryImpl() {
        super(ReportPoCostPerStyleEntity.class);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public List<ReportPoCostPerStyleEntity> fetchReportData(Map<String, Object> criterion) {
        return getSqlSession().selectList(MyBatisDaoUtils.getMapperQueryId(
                namespace, "fetchReportData"), criterion);
    }
}
